<html>
<head><meta charset="utf-8"><title>metrics · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html">metrics</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204917569"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204917569" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204917569">(Jul 24 2020 at 13:54)</a>:</h4>
<p>I finally got to setting up metrics</p>



<a name="204918470"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918470" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918470">(Jul 24 2020 at 14:00)</a>:</h4>
<p>Metrics?</p>



<a name="204918553"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918553" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918553">(Jul 24 2020 at 14:01)</a>:</h4>
<p>Compile time, time to typecheck regex, number of type errors</p>



<a name="204918574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918574">(Jul 24 2020 at 14:01)</a>:</h4>
<p>so that we can track perf over time</p>



<a name="204918595"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918595" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918595">(Jul 24 2020 at 14:01)</a>:</h4>
<p>Like <a href="https://edwin0cheng.github.io/github-action-usage-test/">https://edwin0cheng.github.io/github-action-usage-test/</a>?</p>



<a name="204918714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918714">(Jul 24 2020 at 14:02)</a>:</h4>
<p>yup, like that</p>



<a name="204918778"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204918778" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204918778">(Jul 24 2020 at 14:03)</a>:</h4>
<p>wait, does it already track time?</p>



<a name="204919698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204919698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204919698">(Jul 24 2020 at 14:10)</a>:</h4>
<p>Hm, I think it still makes sense to do this in a somewhat more first-class way...</p>



<a name="204921595"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/204921595" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#204921595">(Jul 24 2020 at 14:24)</a>:</h4>
<p>yeah, I think that page was always more intended as a test anyway, as the URL says ;)</p>



<a name="205512319"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512319" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512319">(Jul 30 2020 at 18:09)</a>:</h4>
<p><a href="/user_uploads/4715/6O2yDQivGZHmphjyUnZk4oH9/image.png">image.png</a> </p>
<div class="message_inline_image"><a href="/user_uploads/4715/6O2yDQivGZHmphjyUnZk4oH9/image.png" title="image.png"><img src="/user_uploads/4715/6O2yDQivGZHmphjyUnZk4oH9/image.png"></a></div><p>So right is newer, right? Or maybe not..</p>



<a name="205512448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512448">(Jul 30 2020 at 18:10)</a>:</h4>
<p>I <em>think</em> right should be newer, yes</p>



<a name="205512515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512515">(Jul 30 2020 at 18:10)</a>:</h4>
<p>Also, does anyone know if it's possible to enable perf_event_open syscall on github actions?</p>



<a name="205512554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512554">(Jul 30 2020 at 18:11)</a>:</h4>
<p>I've added instruction tracking today only to discover that it just doesn't work on CI :(</p>



<a name="205512726"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512726" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512726">(Jul 30 2020 at 18:12)</a>:</h4>
<p>So replacing <code>rand</code> reduced the memory usage by 16 MB? <span aria-label="confused" class="emoji emoji-1f615" role="img" title="confused">:confused:</span></p>



<a name="205512774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512774">(Jul 30 2020 at 18:13)</a>:</h4>
<p>doesn't seem unreasonable -- it's a big crate</p>



<a name="205512815"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205512815" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205512815">(Jul 30 2020 at 18:13)</a>:</h4>
<p><span class="user-mention" data-user-id="203546">@Laurențiu Nicola</span> if you patch code at the gh-pages to show commit message on hover, you'll know for sure ;-)</p>



<a name="205513009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513009">(Jul 30 2020 at 18:14)</a>:</h4>
<p>Does it return <code>EPERM</code>?</p>



<a name="205513029"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513029" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513029">(Jul 30 2020 at 18:14)</a>:</h4>
<p>i think so</p>



<a name="205513070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513070">(Jul 30 2020 at 18:15)</a>:</h4>
<p>(something about permissions -- there's error in the stderr on CI)</p>



<a name="205513442"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513442" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513442">(Jul 30 2020 at 18:17)</a>:</h4>
<p>I see there are some problematic attributes like <code>exclude_kernel</code>, but <code>perf-event</code> enables them (which is better)</p>



<a name="205513664"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513664" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513664">(Jul 30 2020 at 18:19)</a>:</h4>
<p>I can't find the analysis-stats run on CI</p>



<a name="205513671"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513671" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513671">(Jul 30 2020 at 18:19)</a>:</h4>
<p>Only for nightly</p>



<a name="205513930"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205513930" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205513930">(Jul 30 2020 at 18:21)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/runs/928737985?check_suite_focus=true#step:4:372">https://github.com/rust-analyzer/rust-analyzer/runs/928737985?check_suite_focus=true#step:4:372</a></p>



<a name="205565540"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/metrics/near/205565540" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/metrics.html#205565540">(Jul 31 2020 at 07:39)</a>:</h4>
<p>PR is up</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>